package path;

import geom.Vector;
import processing.core.PApplet;

public class DrawAxes implements PathDrawer{
	float size;
	
	public DrawAxes(float size) {
		this.size = size;
	}

	public void drawPath(Path path, PApplet pa) {
		pa.noFill();
		if(path.keyFrames.size() < 2) return;
		for(int i = 0; i < path.keyFrames.size(); i++){
			pa.pushMatrix();
			path.orientToPath(pa, i);
			pa.stroke(255, 0, 0);
			pa.line(0, 0, 0, size, 0, 0);
			pa.stroke(0, 255, 0);
			pa.line(0, 0, 0, 0, size, 0);
			pa.stroke(0, 0, 255);
			pa.line(0, 0, 0, 0, 0, size);
			pa.popMatrix();
		}
	}

	public void keyAdded(Path p) {
		// TODO Auto-generated method stub
		
	}
	
	public void keysAdded(Path p, int amount){
		
	}

	public void keyRemoved(Path p, int i) {
		// TODO Auto-generated method stub
		
	}

}
